home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 4 / MacMania 4.toast / / Sound / SoundEffects 0.9.2 / SoundEffects Developer’s Kit / Interfaces / ModGetSetSamples.h < prev    next >
Text File  |  1994-11-19  |  333b  |  11 lines

  1. // When samples are 8 bits in size:
  2.  
  3. #define        GetSample8(x)        ((signed char)(*(signed char *)x ^ 0x80))
  4. #define        SetSample8(x, s)    *(signed char *)x = (SignedByte)s ^ 0x80
  5.  
  6.  
  7. // When samples are 9 to 32 bits in size:
  8.  
  9. signed long    GetSample16(Ptr samplePtr, short bps);
  10. void        SetSample16(Ptr samplePtr, signed long mySample, short bps);
  11.